package com.castle.fortress.admin.study.exam.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.study.exam.entity.StudyExamQuestionEntity;
import com.castle.fortress.admin.study.exam.dto.StudyExamQuestionDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 试卷题目管理 服务类
 *
 * @author castle
 * @since 2023-02-14
 */
public interface StudyExamQuestionService extends IService<StudyExamQuestionEntity> {

    /**
     * 分页展示试卷题目管理列表
     * @param page
     * @param studyExamQuestionDto
     * @return
     */
    IPage<StudyExamQuestionDto> pageStudyExamQuestion(Page<StudyExamQuestionDto> page, StudyExamQuestionDto studyExamQuestionDto);


    /**
     * 展示试卷题目管理列表
     * @param studyExamQuestionDto
     * @return
     */
    List<StudyExamQuestionDto> listStudyExamQuestion(StudyExamQuestionDto studyExamQuestionDto);

    void deleteByExamId(Long examId);
}
